package org.xjc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Author : XJC
 * @Description :操作日志
 * @create : 2022/8/13 23:17
 */

@Data
@NoArgsConstructor
@AllArgsConstructor

@Entity
@TableName("T_OPERATION_LOG")
@Table(name = "T_OPERATION_LOG")
public class OperationLogEntity extends BaseEntity {

    @TableField("LOG_TYPE")
    @Column(name = "LOG_TYPE", columnDefinition = "varchar2(128)")
    private String logType;

    @TableField("DESCRIPTION")
    @Column(name = "DESCRIPTION", columnDefinition = "varchar2(128)")
    private String description;

    @TableField("OPERATION_DATE")
    @Column(name = "OPERATION_DATE", columnDefinition = "varchar2(128)")
    private String operationDate;

    @TableField("OPERATION_TIME")
    @Column(name = "OPERATION_TIME", columnDefinition = "varchar2(128)")
    private String operationTime;

    @TableField("OPERATION_USER_ID")
    @Column(name = "OPERATION_USER_ID", columnDefinition = "varchar2(128)")
    private String operationUserId;

    @TableField("OPERATION_USER_NAME")
    @Column(name = "OPERATION_USER_NAME", columnDefinition = "varchar2(128)")
    private String operationUserName;

    @TableField("URL")
    @Column(name = "URL", columnDefinition = "varchar2(128)")
    private String url;

    @TableField("IP")
    @Column(name = "IP", columnDefinition = "varchar2(128)")
    private String ip;

    @TableField("EXECUTETIME")
    @Column(name = "EXECUTETIME", columnDefinition = "varchar2(128)")
    private String executeTime;

    @TableField("PARAMS")
    @Column(name = "PARAMS", columnDefinition = "clob")
    private String params;

    @TableField("RETURN_DATA")
    @Column(name = "RETURN_DATA", columnDefinition = "clob")
    private String returnData;

}
